<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');
Route::get('/cache', 'CacheController@index');


Route::get('/create', 'TeacherController@create')->name('create teacher');
Route::get('/teacher-auth', 'TeacherController@auth')->name('teacher auth');
Route::get('/teacher-logout', 'TeacherController@logout')->name('teacher logout');
Route::get('/is-auth', 'TeacherController@isAuth');
